/**
 * @(#)MessageTypeservice.java, 2013-2-11. Copyright 2013 RENREN, Inc. All
 *                              rights reserved. RENREN
 *                              PROPRIETARY/CONFIDENTIAL. Use is subject to
 *                              license terms.
 */
package com.wennimei.enums;

/**
 * @author shichen.feng@renren-inc.com
 */
public enum MessageTypeEnum {
    //
    HELP(".*(什么功能|怎么玩|怎么用|怎么使).*", "", "帮助", true, ResponseType.CONTENT),
    //
    WELCOME("Hello2BizUser", "", "用户加粉通知", ResponseType.CONTENT),
    //
    BAIDU_PLACE("", "", "", ResponseType.CONTENT),
    //
    HISTORY_TODAY("历史上的今天", "", "历史上的今天", ResponseType.CONTENT),
    //
    WEATHER(".*(天气|温度|天气预报|天气情况)", "", "天气预报", ResponseType.CONTENT),
    //
    DIANPING(".*(周围|周边|附近|退出).*", "(周围|周边|附近|退出)", "大众点评", ResponseType.CONTENT),
    //
    JOKE(".*笑话.*", "", "笑话", ResponseType.CONTENT),
    //
    TRANSLATE(".*[a-zA-Z]+.*(什么意思|翻译|意思).*", "[^a-zA-Z]", "翻译",
            ResponseType.CONTENT),
    //
    MOBILE_BELONG("^[0-9]{11}", "", "手机归属", ResponseType.CONTENT),
    //
    STOCK("(^[0-9]{6}|上证|深成)", "", "股票", ResponseType.CONTENT),
    //
    EXPRESS(".*[0-9a-zA-Z]+.*", "", "快递", true, ResponseType.CONTENT),
    //
    AIR_STATE("^[0-9a-zA-Z]{1,2}\\d{3,4}", "", "", ResponseType.CONTENT),
    //
    AIR_SEARCH("", "", "", ResponseType.CONTENT),
    //
    CHINA_CODE(".*(邮编|邮政编码|区号).*", "", "邮编", ResponseType.CONTENT),
    //
    STAR_MATCH("", "", "", true, ResponseType.CONTENT),
    //
    CITY_TOUR("", "", "", true, ResponseType.CONTENT),
    //
    BAIDU_BAIKE(".*(什么意思|是什么|是谁|干什么|做什么).*", "(什么意思|是什么|是谁|干什么|做什么|的|是)",
            "百度百科", ResponseType.CONTENT),
    //
    PICTURE_SEARCH(".*(图片|桌面|壁纸|美图).*", "(图片|桌面|壁纸|美图)", "图片搜索",
            ResponseType.WEIXIN_CONTENT_PIC),
    //
    PARAMETER(".*(参数).*", "(参数|的)", "商品参数", ResponseType.WEIXIN_CONTENT_PIC),
    //
    SOFT_DOWN(".*(下载|软件).*", "(下载|软件)", "软件下载", ResponseType.WEIXIN_CONTENT_PIC),
    //
    NEWS(".*(新闻|要闻).*", "(新闻|要闻)", "新闻", ResponseType.CONTENT),
    //
    HOROSCOPE(".*(运势|运程).*", "", "星座运势", ResponseType.CONTENT),
    //
    CHAT("", "", "聊天", true, ResponseType.CONTENT),
    //
    MUSIC(".*唱的.*", "", "音乐", ResponseType.WEIXIN_MUSIC),
    //
    RAILWAY(".*到*.*(\\d{4}-\\d{2}-\\d{2}){1}.*到*", "", "火车余票",
            ResponseType.CONTENT);

    private MessageTypeEnum(String matchRegx, String replaceRegx,
            String summary, boolean special, ResponseType respType) {
        this.matchRegx = matchRegx;
        this.replaceRegx = replaceRegx;
        this.summary = summary;
        this.respType = respType;
        this.special = special;
    }

    private MessageTypeEnum(String matchRegx, String replaceRegx,
            String summary, ResponseType respType) {
        this.matchRegx = matchRegx;
        this.replaceRegx = replaceRegx;
        this.summary = summary;
        this.respType = respType;
        this.special = false;
    }

    private String matchRegx;

    private String replaceRegx;

    private String summary;

    private ResponseType respType;

    private boolean special;

    public String getMatchRegx() {
        return matchRegx;
    }

    public void setMatchRegx(String matchRegx) {
        this.matchRegx = matchRegx;
    }

    public String getReplaceRegx() {
        return replaceRegx;
    }

    public void setReplaceRegx(String replaceRegx) {
        this.replaceRegx = replaceRegx;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public ResponseType getRespType() {
        return respType;
    }

    public void setRespType(ResponseType respType) {
        this.respType = respType;
    }

    public boolean isSpecial() {
        return special;
    }

    public void setSpecial(boolean special) {
        this.special = special;
    }

}
